package com.lili.userservice.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lili.userservice.entity.TbUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author lili
 * @since 2020-07-20
 */

public interface TbUserMapper extends BaseMapper<TbUser> {

    List<TbUser> findUserAndDept(@Param("current") Integer current, @Param("size") Integer size);

    Integer findUserAndDeptCount();

    Page<TbUser> findUserPage(Page<TbUser> page, @Param("ew") QueryWrapper<TbUser> wrapper);


}
